package types

type GetTenantGroupMemberByProjectReq struct {
	Param struct {
		Filter struct {
			ProjectTenantId    int64   `json:"project_tenant_id"`
			AllProjectTenantId []int64 `json:"all_project_tenant_id"`
			Options            struct {
				SelectTenantAddress      string `json:"select_tenant_address"`
				SelectTenantStepCategory string `json:"select_tenant_step_category"`
			} `json:"options"`
		} `json:"filter"`
	} `json:"param"`
}

type TenantAddressInfo struct {
	ID                   int    `json:"id"`
	TenantID             int    `json:"tenant_id"`
	CompanyName          string `json:"company_name"`
	CompanyOfficeAddress string `json:"company_office_address"`
	Province             string `json:"province"`
	Cities               string `json:"cities"`
	Coordinate           string `json:"coordinate"`
	CityCoordinate       string `json:"city_coordinate"`
}

type GetTenantGroupMemberByProjectResData struct {
	TenantGroupMemberIds []int64                      `json:"tenant_group_member_ids"`
	TenantStepCategory   map[string][]int64           `json:"tenant_step_category"`
	StepCategoryIds      string                       `json:"step_category_ids"`
	TenantAddress        map[string]TenantAddressInfo `json:"tenant_address"`
}

type GetTenantGroupMemberByProjectRes struct {
	Code int64                                `json:"code"`
	Msg  string                               `json:"msg"`
	Data GetTenantGroupMemberByProjectResData `json:"data"`
}

type GroupTenantListRes struct {
	TgName           string `json:"tg_name"`
	TgStatus         string `json:"tg_status"`
	TgTenantGroupId  uint64 `json:"tg_tenant_group_id"`
	TgmTenantGroupId uint64 `json:"tgm_tenant_group_id"`
	TgmId            uint64 `json:"tgm_id"`
	TgmTenantId      uint64 `json:"tgm_tenant_id"`
	TenantName       string `json:"tenant_name"`
}
